package com.ServiceImpl.Admin;

import com.Mapper.Admin.SiteInfoMapper;
import com.Model.Admin.SiteInfo;
import com.Service.Admin.SiteInfoService;
import com.ServiceImpl.BaseSevice;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SiteInfoServiceImpl extends BaseSevice<SiteInfo> implements SiteInfoService {


    @Override
    public PageInfo<SiteInfo> getSiteInfoByQuery(SiteInfo siteInfo) {

        List<SiteInfo> lst  =((SiteInfoMapper)mapper).getSiteInfo(siteInfo.getSitename(), siteInfo.getHospitalcode());
        PageInfo<SiteInfo> info=new PageInfo<>(lst);
        return info;
    }
}
